<route lang="json5">
{
  style: {
    navigationBarTitleText: '我的申请',
  },
}
</route>

<template>
  <view class="common-tab-list-wrap">
    <wd-tabs custom-class="common-header-tabs">
      <wd-tab title="预约活动申请">
        <BookingActivityList></BookingActivityList>
      </wd-tab>
      <wd-tab
        v-if="hasPermission"
        title="新增活动申请"
      >
        <AddActivityList></AddActivityList>
      </wd-tab>
      <!-- <wd-tab title="点单服务申请">
        <OrderServeList></OrderServeList>
      </wd-tab> -->
    </wd-tabs>
  </view>
</template>

<script setup>
import { readMessage } from '@/hooks/useReadMessage'
import AddActivityList from './components/AddActivityList.vue'
import BookingActivityList from './components/BookingActivityList.vue'
import OrderServeList from './components/OrderServeList.vue'
import JudgePermission from '@/components/JudgePermission.vue'
import { usePermissionStore } from '@/store/permission'

const { judgeMenuPermission, judgeActionPermission } = usePermissionStore()

const hasPermission = computed(() => {
  return judgeMenuPermission('/native/activity')
})

onLoad(() => {
  readMessage('hallActivityDeclare')
  readMessage('orderSubscribe')
  readMessage('orderDeclareApprove')
})
</script>

<style lang="scss" scoped></style>
